package com.tuanzi.blog.dao;

import com.tuanzi.blog.model.User;
import org.apache.ibatis.annotations.Param;

public interface UserMapper {
    int deleteByPrimaryKey(Long id);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);
    //通过账号和密码进行查询
    User findByUsernameAndPassword(@Param("username") String username, @Param("password") String password);
}